<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
    function fun(){
        console.log('这是一个命名函数');
        
    }
    fun();
    var foo = function(){
        console.log('这是一个表达式匿名函数');
        
    }
    foo();
    var foo1 =function fo(){
        console.log('这是一个表达式命名函数');
        
    }
    foo1();
    
    </script>
</body>
</html>